import axios from "@/http/http.js";

// 封装管理员获取预约信息接口
export const appointmentsFindAPI = (data) => {
    return axios({
        url: '/appointment/findAppointment',
        method: 'post',
        data
    })
};

// 封装修改预约信息接口
export const appointmentsStatusUpdateAPI = (data) => {
    return axios({
        url: '/appointment/update',
        method: 'put',
        data
    })
};

// 封装取消预约并退款接口
export const cancelAppointmentAPI = (params) => {
    return axios({
        url: 'http://127.0.0.1:8081/alipay/refund',
        method: 'get',
        params
    })
};